package gdatastructure;
public class VNode{
	public int linkvalue; //距离
        // private double dc;
        // private int Circulation;
	public int index; //下标编号
	private VNode next; //下一个连接的点
        public double x;
        public double y;
        
	VNode(int index, int linkvalue){
		this.linkvalue = linkvalue;
		this.index = index;
                //this.Circulation=cir;
              //  dc=this.linkvalue/(this.Circulation+1);
		this.next = null;
  
	}
//        void setcir(int cir)
//        {
//            Circulation=cir;
//        }

      
	void next(VNode next){ //设置他的下一个点
		this.next = next;
	}
	VNode next(){ //得到
		return next;	
	}
//        double dc()
//        {
//            return dc;
//        }
	int linkvalue(){ //距离
		return linkvalue;
	}
	int index(){ //下标
		return index;
	}
}